package day02;

public class DataTypeDemo {
    public static void main(String[] args) {
        //double:浮点型，8个字节，很大很大
      /* double a=45.978;
       float b=45.978f;
       double c=3.0,d=2.9;
        System.out.println(c-d);//0.10000000000000009,发生舍入误差了

       */
        char c1='女';
        char c2='f';
        char c3=65;
        System.out.println(c3);//输出结果为A
        char c4='\\';
        System.out.println(c4);// 输出结果为\


        System.out.println(2+2);
        System.out.println(2+'2');//52
        System.out.println('2'+'2');//100
        System.out.println('2');//2


    }
}
